
<div class="content">
	<div class="title">
	<h2>学习论坛</h2>
	</div>
	<div class="forumdetailblock">
		<div class="toptitle">
			<h3><?php echo $this->escape($this->forum['title']);?></h3>
			<a href="
			<?php echo $this->baseUrl().'/forum/reply?replytoid='.$this->forum['id'];?>"><div class="replyforum">回复本帖</div></a>
		</div>
		<div class="container3">
		
		<div class="thenew">
			<div class="lefthead">
				 <img  alt="img" src="<?php echo $this->baseUrl().'/'.$this->forum['authorheadimg'];?>"/>
				<h4><?php echo $this->escape($this->forum['author']);?></h4>
			</div>
			<div class="forumcontent">
				<div class="forumcontent2">
				<?php 
				//echo $this->forum['content'];
				echo $this->escape($this->forum['content']);
				?>
				  <!--又到了神奇的一天----宁九~伟森日，今天早上出门的时候见天空乌云密布，想必当有大事发生，果不其然，到了一教C406，冯老师身穿。。。-->
				</div>
				<div class="count" title="<?php echo $this->forum['countreply'];?>个回复"><?php echo $this->forum['countreply'];?></div>
				<div class ="timeblock">
				<!--楼主[2012.7.28]-->
				<?php date_default_timezone_set("Asia/Shanghai");echo '['.gmdate('Y-m-d H:i:s',$this->forum['time']+3600 * 8).']';?>
				</div>

			</div>

		</div>
		<ul>
			<?php
				$floor = 0;
				foreach($this->allreplyforum as $replyforum)
				{
				    $floor++;
				    echo '<li>
				    		<div class="thenew">
					      		<div class="lefthead">
						    		<img  alt="img" src="';
				    echo $this->baseUrl().'/'.$replyforum['authorheadimg'].'"/>';
					echo '<h4>'.$replyforum['author'].'  ('.$floor.'楼)</h4>';
					echo '</div>
						  <div class="forumcontent">
						  <div class="forumcontent2">';
					echo $this->escape($replyforum['content']);
					echo '</div>
						  <div class ="timeblock">';
					date_default_timezone_set("Asia/Shanghai");
					echo '['.gmdate('Y-m-d H:i:s',$replyforum['time'] + 3600 * 8).']';	
					echo '         </div>
							    </div>
						    </div>
					     </li>';			    
				} 
			?>
			<!-- 静态模板 
			<li>
				<div class="thenew">
					<div class="lefthead">
						<img  alt="img" src="<?php echo $this->baseUrl();?>/images/forum/head2.png"/>
						<h4>zhi_jian</h4>
					</div>
					<div class="forumcontent">
						<div class="forumcontent2">
						早已听说过冯老师的霸气！
						</div>
						<div class ="timeblock">
						1楼[2012.7.28]
						</div>
					</div>
				</div>
			</li>
		-->
		</ul>
		</div>
	</div>
	<div class="forumsideblock">
		<img  alt="img" src="<?php echo $this->baseUrl().'/'.$this->authorimg;?>"/>
		<div class="tip">
			<h4><?php echo $this->escape($this->author);?></h4>
			<?php 
				if($this->author!='游客')
				{
				    echo '<p><a href="'.$this->baseUrl().'/forum/changeimg'.'">修改头像</a></p>';
				    echo '<p><a href="'.$this->baseUrl().'/forum/myforum'.'">我发表的帖子</a></p>';
				    echo '<p><a href="'.$this->baseUrl().'/forum/myreplyforum'.'">我回复的帖子</a></p>';
				}
			?>
		</div>
	</div>

</div>
